<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico">
<link rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />

<title>客户消费商品列表</title>
</head>
<body>
	<nav class="breadcrumb">
		首页 <span class="c-gray en">&gt;</span>客户住宿管理<span class="c-gray en">&gt;</span>客户消费商品管理<span class="c-gray en">&gt;</span>
		客户消费商品列表 
	</nav>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l"><a href="saleDtAdd.jsp"
			class="btn btn-primary radius"> 添加客户消费商品</a> </span>
	</div>
	<div class="page-container">
		<table class="table table-border table-bordered table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="9">消费商品列表</th>
				</tr>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="40">订单编号</th>
					<th width="80">商品名称</th>
					<th width="80">消费数量</th>
					<th width="80">商品单价￥</th>

					<th width="80">单品总价</th>
					<th width="80">操作员</th>
					<th width="80">操作</th>
				</tr>
			</thead>
			<tbody id="saleDt">
				<c:forEach items="${saleDtLists}" var="saleDt" varStatus="status">
					<tr class="text-c">
						<td><input type="checkbox" value="${status.count }" name=""></td>
						<td>${saleDt.billNo}</td>
						<td>${saleDt.goods.goodsName}</td>
						<td>${saleDt.num}</td>
						<td>${saleDt.price}</td>

						<td>${saleDt.amount}</td>
						<td class="td-status">${saleDt.user.userName}</td>
						<td class="td-manage"><a style="text-decoration: none"
							onClick="" href="javascript:;" title="修改">修改</a> &nbsp;/&nbsp; <a 
							href="SaleDtServlet?action=delete&goodsId=${saleDt.goods.goodsId }" class="ml-5 confirm"
							style="text-decoration: none">删除</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="jquery/jquery.min.js"></script>
	<script type="text/javascript" src="jquery/layer.js"></script>
	<script type="text/javascript" src="jquery/H-ui.min.js"></script>
	<script type="text/javascript" src="jquery/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<script type="text/javascript">
	$(function(){
				$(".confirm").click(function(){
					return confirm("您确定要删除这条记录吗？");
					});
			});
	</script>
</body>
</html>